package com.dlnu.sujiwords.dao;

import com.dlnu.sujiwords.domain.pojo.Memories_number;
import org.apache.ibatis.annotations.Param;

public interface Memories_numberMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(Memories_number record);

    int insertSelective(Memories_number record);

    Memories_number selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(Memories_number record);

    int updateByPrimaryKey(Memories_number record);
    /*根据电话号码查询记忆单词数*/
    Memories_number selectByPhoneNumber(String phoneNumber);
    /*根据电话号码和列表名称查询指定记忆次数*/
    int selectTableNumByTableNumAndPhoneNumber(@Param("phoneNumber")String phoneNumber,@Param("colName")String rowName);
    /*更新已经记忆单词数量*/
    int updateUserMemoriesNumber(@Param("phoneNumber") String phoneNumber,@Param("memorizeNum") Integer memorizeNum,@Param("colName") String colName);

}